//
//  LBViewController.m
//  LBShareViewController
//
//  Created by 杨庆人 on 04/13/2017.
//  Copyright (c) 2017 杨庆人. All rights reserved.
//

#import "LBViewController.h"
#import "LBShareViewController.h"

@interface LBViewController ()

@end

@implementation LBViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    UIButton * btn = [UIButton buttonWithType:UIButtonTypeCustom];
    
    btn.frame = CGRectMake(100, 100, 50, 50);
    
    btn.backgroundColor = [UIColor yellowColor];
    
    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:btn];
    
    
  	// Do any additional setup after loading the view, typically from a nib.
}

- (void)btnClick {
    [LBShareViewController showWithShareTitle:@"" shareSubTitle:@"" shareURL:@"" shareImage:nil shareImageUrl:@"" shareResultBlock:^(LBChannelModel *channelModel, LBShareResultCode shareResultCode) {
        NSLog(@"%ld",(long)shareResultCode);
    }];

}

@end
